import { EventInput } from '@fullcalendar/core'

let eventGuid = 0
let todayStr = new Date().toISOString().replace(/T.*$/, '') // YYYY-MM-DD of today

export const INITIAL_EVENTS: EventInput[] = [
	{
		id: createEventId(),
		title: '全天的事件',
		start: todayStr,
		end: '2023-09-11'
	},
	{
		id: createEventId(),
		title: '定时事件',
		start: todayStr + 'T08:00:00',
		end: todayStr + 'T12:00:00'
	}
]

export function createEventId() {
	return String(eventGuid++)
}
